﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASSReader
{
    public class StyleCollection : List<V4Style>
    {
        public StyleCollection(IEnumerable<string> Headers)
        {
            this.Headers = new List<string>(Headers);
        }

        public IList<string> Headers { get; private set; }

        public V4Style this[string Name]
        {
            get
            {
                return this.Where(m => m.Name == Name).SingleOrDefault();
            }
        }
       
    }

    public class V4Style
    {
        public string Name { get; set; }
        public string Fontname { get; set; }
        public int Fontsize { get; set; }
        public string PrimaryColour { get; set; }
        public string SecondaryColour { get; set; }
        public string OutlineColour { get; set; }
        public string BackColour { get; set; }
        public int Bold { get; set; }
        public int Italic { get; set; }
        public int Underline { get; set; }
        public int StrikeOut { get; set; }
        public double ScaleX { get; set; }
        public double ScaleY { get; set; }
        public double Spacing { get; set; }
        public double Angle { get; set; }
        public int BorderStyle { get; set; }
        public double Outline { get; set; }
        public int Shadow { get; set; }
        public int Alignment { get; set; }
        public int MarginL { get; set; }
        public int MarginR { get; set; }
        public int MarginV { get; set; }
        public int Encoding { get; set; }

    }
}
